home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.unix.programmer,comp.lang.c
- Subject: Re: getpwnam() -error checking
- Date: Wed, 27 Mar 96 12:22:18 GMT
- Organization: none
- Message-ID: <827929338snz@genesis.demon.co.uk>
- References: <Pine.SOL.3.91.960327025242.5526B-100000@ee.tamu.edu>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <Pine.SOL.3.91.960327025242.5526B-100000@ee.tamu.edu>
- ajay@ee.tamu.edu "Ajay Kumar Gummadi" writes:
-
- >
- >Hi all,
- >
- > The function getpwnam() takes the user-id as input argument and returns
- >a pointer to a structure, that contains all the user information.
-
- Or a null pointer on error.
-
- > If I give a wrong /non-existent user-id as input argument, how can I
- >check the error condition that may arise, before, the system dumps core.
-
- Note that getpwnam() is not a part of the C language - it was inappropriate
- to cross-post this to comp.lang.c.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-